package sfy.md.structure.theflyweight;

public class Man  implements FlyWeightManager{
   StoreManager storeManager = new Store();
   String name ;


    @Override
    public void addOne() {

       this.setName("男人");
       storeManager.setOne(this);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public StoreManager getStore() {
        return storeManager;
    }
}
